<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script>
function aumentaframe (linhas)
{
	parent.document.getElementById('corpo').height = document.body.scrollHeight;
}

function carregaFrame (valor, pagina)
{
	parent.document.getElementById('nivel1').innerHTML = " &nbsp; "  + 
	"<a href=\"javascript:;\" title=\"" + pagina + "\" target=\"_parent\" onClick=\"carregaFramePrincipal('"+ valor +"', '1');\">" + pagina + "</a>";
	
	parent.document.getElementById('corpo').src = valor;
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body onload="aumentaframe()">

<?php
require_once("../funcoes/restricaoAcesso.php");

if ($_SESSION['administrador']) {
	$pg2 = "menu_config_adm.php";
}
else {
	$pg2 = "alterar_senha.php";
}
?>

<table align="center" border="0" cellspacing="20" >

<tr>
<td width="256" height="10"></td>
<td width="256" height="10"></td>
</tr>
<tr>
<td width="256" height="10"></td>
<td width="256" height="10"></td>
</tr>

<tr>
<td>
<a href="javascript:;" title="Trabalhos" target="_parent" onClick="carregaFrame('menu_trabalho.php', 'Trabalhos');"><img src="../img/trabalhos.gif" width="300" height="200"  /></a>
</td>
<td>
<a href="javascript:;" title="Relatorios" target="_parent" onClick="carregaFrame('menu_relatorio.php', 'Relatórios');"><img src="../img/relatorios.gif" width="300" height="200"  /></a>
</td>
</tr>

<tr >
<td>
<a href="javascript:;" title="Manual" target="_parent" onClick="carregaFrame('manual.php', 'Manual');"><img src="../img/manual.gif" width="300" height="200"  /></a>
</td>
<td>
<a href="javascript:;" title="Configurações" target="_parent" onClick="carregaFrame('<?php echo $pg2; ?>', 'Configurações');"><img src="../img/config.gif" width="300" height="200" /></a>
</td>
</tr>


</table>


</body>
</html>
